-----------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  C:\Documents and Settings\Marc\My Documents\Dropbox\Private\CPS Data & Results - Replication\Replication Data - CPS 20
> 12\Nigeria Case Study - WVS data\Nigeria Case Study results.log
  log type:  text
 opened on:   1 Dec 2012, 11:53:20

. do "C:\Documents and Settings\Marc\My Documents\Dropbox\Private\CPS Data & Results - Replication\Replication Data - CPS 2012\Nige
> ria Case Study - WVS data\Nigeria Case Study do file.do"

. *Stata do file to replicate Nigeria case study in "Individual Identity Attachments and International Conflict: The Importance of 
> Territorial Threat" 
. *by Douglas M. Gibler, Marc L. Hutchison, and Steven M. Miller
. *Comparative Political Studies 45(12): 1655-1683
. *************************************************************
. *open .dta file titled "Nigeria WVS data 1995 & 2000.dta"
. 
. 
. *To generate the results found in Figure 2
. *Overall national averages of Nigerians selecting national identity
. tab identity if year==1995

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,461       73.27       73.27
national identity |        533       26.73      100.00
------------------+-----------------------------------
            Total |      1,994      100.00

. tab identity if year==2000

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,000       49.63       49.63
national identity |      1,015       50.37      100.00
------------------+-----------------------------------
            Total |      2,015      100.00

. 
. *Difference between East Region and National Average in 2000 (6.5%)
. tab identity if year==2000 & east!=1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        717       51.66       51.66
national identity |        671       48.34      100.00
------------------+-----------------------------------
            Total |      1,388      100.00

. tab identity if year==2000 & east==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        283       45.14       45.14
national identity |        344       54.86      100.00
------------------+-----------------------------------
            Total |        627      100.00

. 
. *Difference between North Region and National Average in 2000 (16.0%)
. tab identity if year==2000 & north!=1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        627       44.75       44.75
national identity |        774       55.25      100.00
------------------+-----------------------------------
            Total |      1,401      100.00

. tab identity if year==2000 & north==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        373       60.75       60.75
national identity |        241       39.25      100.00
------------------+-----------------------------------
            Total |        614      100.00

. 
. *Difference between West Region and National Average in 2000 (4.6%)
. tab identity if year==2000 & west!=1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        734       50.94       50.94
national identity |        707       49.06      100.00
------------------+-----------------------------------
            Total |      1,441      100.00

. tab identity if year==2000 & west==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        266       46.34       46.34
national identity |        308       53.66      100.00
------------------+-----------------------------------
            Total |        574      100.00

. 
. 
. *To generate the results discussed in text and not displayed in Figure 2
. *Difference between East Region and National Average in 1995 (11.4%)
. tab identity if year==1995

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,461       73.27       73.27
national identity |        533       26.73      100.00
------------------+-----------------------------------
            Total |      1,994      100.00

. tab identity if year==1995 & east==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        458       84.81       84.81
national identity |         82       15.19      100.00
------------------+-----------------------------------
            Total |        540      100.00

. 
. *Difference between North Region and National Average in 1995 (4.4%)
. tab identity if year==1995

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,461       73.27       73.27
national identity |        533       26.73      100.00
------------------+-----------------------------------
            Total |      1,994      100.00

. tab identity if year==1995 & north==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        333       77.62       77.62
national identity |         96       22.38      100.00
------------------+-----------------------------------
            Total |        429      100.00

. 
. *Difference between West Region and National Average in 1995 (1.9%)
. tab identity if year==1995

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,461       73.27       73.27
national identity |        533       26.73      100.00
------------------+-----------------------------------
            Total |      1,994      100.00

. tab identity if year==1995 & west==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        436       75.17       75.17
national identity |        144       24.83      100.00
------------------+-----------------------------------
            Total |        580      100.00

. 
. *Difference between West Region and National Average in 2000 (3.3%)
. tab identity if year==2000

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |      1,000       49.63       49.63
national identity |      1,015       50.37      100.00
------------------+-----------------------------------
            Total |      2,015      100.00

. tab identity if year==2000 & west==1

national identity |
     (1) or group |
     identity (0) |      Freq.     Percent        Cum.
------------------+-----------------------------------
   group identity |        266       46.34       46.34
national identity |        308       53.66      100.00
------------------+-----------------------------------
            Total |        574      100.00

. 
. 
end of do-file

. log close
      name:  <unnamed>
       log:  C:\Documents and Settings\Marc\My Documents\Dropbox\Private\CPS Data & Results - Replication\Replication Data - CPS 20
> 12\Nigeria Case Study - WVS data\Nigeria Case Study results.log
  log type:  text
 closed on:   1 Dec 2012, 11:53:55
-----------------------------------------------------------------------------------------------------------------------------------
